package com.wu.dms.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;

import java.util.Date;

@Data
@TableName("article")
public class Article {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String username;

    private String content;

    @TableField("image_url")
    private String imageUrl;

    @TableField("create_time")
    private Date createTime;

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

}
